package com.limou.pojo;


import java.io.Serializable;
import java.util.List;

/**订单类
 * id	int
 * user_id	int	用户id，一个订单一定有且只有一个id
 * total_money	double	该订单的总金额
 * status	tinyint	订单状态
 */

public class Order implements Serializable {
    private int ID;
    private int uid;
    private User user;
    private double totalMoney;
    private  int status;
    private List<Product> goodsList;


    @Override
    public String toString() {
        return "Order{" +
                "ID=" + ID +
                ", uid=" + uid +
                ", user=" + user +
                ", totalMoney=" + totalMoney +
                ", status=" + status +
                ", goodsList=" + goodsList +
                '}';
    }

    public Order() {
    }

    public Order(int ID, int uid, User user, double totalMoney, int status, List<Product> goodsList) {
        this.ID = ID;
        this.uid = uid;
        this.user = user;
        this.totalMoney = totalMoney;
        this.status = status;
        this.goodsList = goodsList;
    }

    public Order(int ID, User user, double totalMoney, int status, List<Product> goodsList) {
        this.ID = ID;
        this.user = user;
        this.totalMoney = totalMoney;
        this.status = status;
        this.goodsList = goodsList;
    }

    public List<Product> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<Product> goodsList) {
        this.goodsList = goodsList;
    }

    public Order(int ID, User user, double totalMoney, int status) {
        this.ID = ID;
        this.user = user;
        this.totalMoney = totalMoney;
        this.status = status;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public double getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(double totalMoney) {
        this.totalMoney = totalMoney;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
